package com.bolehui.web;

import com.bolehui.base.result.Result;
import com.bolehui.domain.dto.ResumeDTO;
import com.bolehui.domain.vo.ResumeVO;
import com.bolehui.service.ResumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chendongjie     email:chendongjie@gz.iscas.ac.cn
 * @version 1.0
 * @ClassName ResumeController
 * @Description
 * @createTime 2024/12/13 9:46
 * Copyright (C) 2021-2022 CASEEDER, All Rights Reserved.
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 */
@RestController
@RequestMapping("/resume")
public class ResumeController {

    @Autowired
    private ResumeService resumeService;

    @RequestMapping(params = "action=save")
    public Result save(ResumeDTO dto){
        return resumeService.save(dto);
    }

    @RequestMapping(params = "update" )
    public Result update(ResumeDTO dto){
        return resumeService.update(dto);
    }

    @RequestMapping(params = "action=get")
    public Result<ResumeVO> get(Long userId){
       return resumeService.get(userId);
    }

}
